#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>


int main()
{
    int n = 0, i = 0, arr[1000] = { 0 }, max = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++)
    {
        scanf("%d", &arr[i]);
        if (arr[i] > arr[max])
            max = i;
    }
    printf("%d\n", max + 1);

    return 0;
}